
package com.xbongbong.message.domain.dao;

import com.xbongbong.message.domain.entity.PushSetEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * PushSetDao
 *
 * @author GuoJun.HU
 * @since V1.0
 * @date 2019/2/19 10:48
 */
@Repository
@Mapper
public interface PushSetDao {

    Integer insert(PushSetEntity pushSet);

    Integer update(PushSetEntity pushSet);

    Integer updateBatch(@Param("list") List<PushSetEntity> list,@Param("corpid") String corpid);

    Integer deleteByKey(@Param("key") Long key, @Param("corpid") String corpid);

    PushSetEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid);

    List<PushSetEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);

}